<html>
<head>
    <meta charset="utf-8">
    <title>Shine</title>
    <link href="assets/demo.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="assets/shine.min.js"></script>
    <link rel="stylesheet" href="http://dreamsky.github.io/main/blog/common/init.css">
    <style>
        body {
            background-color: #c5e1d8;
        }
    </style>
    <script src="http://dreamsky.github.io/main/blog/common/jquery.min.js"></script>
    <script src="http://dreamsky.github.io/main/blog/common/init.js"></script>
</head>
<body>
<h1 id="headline" class="demo-text" style="color: #009688">亲爱的,欢迎光临</h1>
<div class="footer-banner" style="width:728px; margin:700px auto 0"></div>
<script type="text/javascript">
    var shine = new Shine(document.getElementById('headline'));

    function handleMouseMove(event) {
        shine.light.position.x = event.clientX;
        shine.light.position.y = event.clientY;
        shine.draw();
    }

    window.addEventListener('mousemove', handleMouseMove, false);
</script>
</body>
</html>
